﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Threading;
using System.Windows.Forms;

namespace Ricciolo.StylesExplorer.Model
{
    class WinFormSynchronizeInvoke
    {
        public static ISynchronizeInvoke Current
        {
            get
            {
                if (Application.OpenForms.Count > 0)
                    return Application.OpenForms[0];
                return new Control();
            }
        }
    }
}
